FileGetTime

 

The 'FileGetTime' function stores the date and the time of the specified file in the specified buffer.

 

int FileGetTime(string file_name, int year, int mon, int day, int hour, int min, int sec);

 

Parameters

string file_name : file name including the absolute path

 

int year : buffer in where you want to store the year of the specified file

int mon : buffer in where you want to store the month of the specified file

int day : buffer in where you want to store the day of the specified file

int hour : buffer in where you want to store the hour of the specified file

int min : buffer in where you want to store the minute of the specified file

int sec : buffer in where you want to store the second of the specified file

 

Return Value

result (1 = success, 0 = fail)

 

Example

result = @FileGetTime("C:\\TEXT1.TXT", year, mon, day, hour, min, sec);

if(result == 1)

{

@Message("Success");

}

else

{

@Message("Fail");

}

Description : The first line stores the date and the time of 'C:\\TEXT1.TXT' in the specified variable('year', 'mon', 'day', 'hour', 'min', 'sec'). If 'result' is '1', 'Success' message will be displayed on the screen. If 'result' is '0', 'Fail' message will be displayed on the screen.